package cn.yunyichina.reservation.common;

/**
 * Created by Lullaby on 2016/8/23.
 */
public enum ResponseEnum {

    SUCCESS("0", "okay"),
    FAILURE("-1", "服务器异常"),
    EMPTY_USERNAME_PASSWORD("10001", "用户名或密码为空"),
    WRONG_USERNAME_PASSWORD("10002", "用户名或密码错误"),
    USER_NOT_EXIST("10003", "用户不存在"),
    LOGIN_SUCCESS("10004", "登入成功"),
    LOGOUT_SUCCESS("10005", "登出成功"),
    SESSION_TIMEOUT("10006", "会话超时"),
    ILLEGAL_PARAMETER("10007", "参数有误"),
    RPC_NOT_FOUND("10010", "未发现服务"),
    RPC_EXCEPTION("10011", "服务请求异常"),
    ;

    private String code;

    private String message;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}
